package com.varian.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.varian.mybatis.base.PrimaryKeyEntity;
import lombok.Data;

/**
 * @author ben
 * @since 2024/7/23
 */
@Data
@TableName(value = "varian_api_log_error", autoResultMap = true)
public class ApiErrorLog extends PrimaryKeyEntity {
    /**
     * traceId
     */
    private String traceId;
    /**
     * 异常类
     */
    private String exceptionClass;
    /**
     * 异常名称
     */
    private String exceptionMessage;
    /**
     * 异常位置
     */
    private String exceptionLocal;
    /**
     * 堆栈信息
     */
    private String stackTrace;
    /**
     * 处理状态
     */
    private Integer handlingStatus;
    /**
     * 处理消息
     */
    private String handlingRemark;
    @Version
    private Integer version;
    @TableField("is_deleted")
    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;
}
